import { defineStore } from 'pinia'; 
export const useCounterStore = defineStore({ 
    id: 'counter', state: () => { return { count: 0 }; }, 
    actions: { 
        increment() { this.count++; 

        }, 
        decrement() { this.count--; 

        }, 
        reset() { this.count = 0; 

        } },
        getters: { doubleCount: (state) => state.count * 2, }, 
    });